differentiate y = sin(2x) using the chain rule